<!DOCTYPE html>

<html class="no-js">


<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>@yield('title')</title>
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <!-- Favicon -->
    <link rel="shortcut icon" href="/admins/img/favicon.ico" type="image/x-icon">
    <!-- Bootstrap core CSS -->
    <link rel="stylesheet" href="/admins/plugins/bootstrap/css/bootstrap.min.css">
    <!-- Fonts from Font Awsome -->
    <link rel="stylesheet" href="/admins/css/font-awesome.min.css">
    <!-- CSS Animate -->
    <link rel="stylesheet" href="/admins/css/animate.css">
    <!-- Custom styles for this theme -->
    <link rel="stylesheet" href="/admins/css/main.css">
    <!-- Vector Map  -->
    <link rel="stylesheet" href="/admins/plugins/jvectormap/css/jquery-jvectormap-1.2.2.css">
    <!-- ToDos  -->
    <link rel="stylesheet" href="/admins/plugins/todo/css/todos.css">
    <!-- Morris  -->
    <link rel="stylesheet" href="/admins/plugins/morris/css/morris.css">
  
    <script src="/admins/js/modernizr-2.6.2.min.js"></script>


    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
    <script src="/admins/js/html5shiv.js"></script>
    <script src="/admins/js/respond.min.js"></script>
    <![endif]-->
    <script type="text/javascript">
    	
    </script>
</head>


<body>
    <section id="container">
        <header id="header">
            <!--logo start-->
            <div class="brand">
                <a href="/admin" class="logo">
                    <span>Space</span>Lab</a>
            </div>
            <!--logo end-->
            <div class="toggle-navigation toggle-left">
                <button type="button" class="btn btn-default" id="toggle-left" data-toggle="tooltip" data-placement="right" title="Toggle Navigation">
                    <i class="fa fa-bars"></i>
                </button>
            </div>
            
            <div class="user-nav">
                <ul>
                    <li class="dropdown messages">
                        <span class="badge badge-danager animated bounceIn" id="new-messages">{{Session::get('num')}}</span>
                        <button type="button" class="btn btn-default dropdown-toggle options" id="toggle-mail" data-toggle="dropdown">
                            <i class="fa fa-envelope"></i>
                        </button>
                        <ul class="dropdown-menu alert animated fadeInDown">
                            <li>
                                <h1>你有
                                    <strong>{{Session::get('num')}}</strong>封新邮件</h1>
                            </li>
                            @foreach(Session::get('messages') as $k =>$v )
                            <li>
                                <a href="#">
                                    <div class="profile-photo">
                                        <img src="{{$v->photo}}" alt="" width="50px" class="img-circle">
                                    </div>
                                    <div class="message-info">
                                        <span class="sender">{{$v->name}}</span>
                                        <span class="time">{{date('Y-m-d H:i:s',$v->time)}}</span>
                                        <div class="message-content">{{$v->content}}</div>
                                    </div>
                                </a>
                            </li>
                            @endforeach
                            <li><a href="#">Check all messages <i class="fa fa-angle-right"></i></a>

                            </li>
                        </ul>

                    </li>
                    <li class="profile-photo">
                        
                        <img src="{{Session::get('admin')->photo}}" alt="" class="img-circle">
                        <img src="/admins/img/avatar.png" alt="" class="img-circle">

                    </li>
                    <li class="dropdown settings">
                        <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                      {{Session::get('admin') -> username}}<i class="fa fa-angle-down"></i>
                    </a>
                        <ul class="dropdown-menu animated fadeInDown">
                            <li>
                                <a href="#"><i class="fa fa-user"></i> 个人信息</a>
                            </li>
                            <li>
                                <a href="#"><i class="fa fa-calendar"></i> 日历</a>
                            </li>
                            <li>
                                <a href="#"><i class="fa fa-envelope"></i> 收件箱 <span class="badge badge-danager" id="user-inbox">5</span></a>
                            </li>
                            <li>
                                <a href="/admin/logout"><i class="fa fa-power-off"></i>退出登录</a>
                            </li>
                        </ul>
                    </li>
                    <li>
                        <div class="toggle-navigation toggle-right">
                            <button type="button" class="btn btn-default" id="toggle-right">
                                <i class="fa fa-comment"></i>
                            </button>
                        </div>
                    </li>

                </ul>
            </div>
        </header>
        <!--sidebar left start-->
        <aside class="sidebar">
            <div id="leftside-navigation" class="nano">
                <ul class="nano-content">
                    <li class="active">
                        <a href="/admin"><i class="fa fa-dashboard"></i><span>后台首页</span></a>
                    </li>
                    <li class="sub-menu">
                        <a href="javascript:void(0);"><i class="fa fa fa-group"></i><span>用户管理</span><i class="arrow fa fa-angle-right pull-right"></i></a>
                        <ul>
                            <li><a href="/user/add">用户添加</a></li>
                            <li><a href="/user/list">用户列表</a></li>
                        </ul>
                    </li>
                    <li class="sub-menu">
                        <a href="javascript:void(0);"><i class="fa fa fa-list"></i><span>商品分类</span><i class="arrow fa fa-angle-right pull-right"></i></a>
                        <ul>
                            <li><a href="/type/add">分类添加</a></li>
                            <li><a href="/type/list">分类列表</a></li>
                        </ul>
                    </li>
                    <li class="sub-menu">
                        <a href="javascript:void(0);"><i class="fa fa fa-shopping-cart"></i><span>商品管理</span><i class="arrow fa fa-angle-right pull-right"></i></a>
                        <ul>
                            <li><a href="/goods/add">商品添加</a></li>
                            <li><a href="/goods/list">商品列表</a></li>
                        </ul>
                    </li>

                    <li class="sub-menu">
                        <a href="javascript:void(0);"><i class="fa fa fa-list"></i><span>博文分类</span><i class="arrow fa fa-angle-right pull-right"></i></a>
                        <ul>
                            <li><a href="/articlecate/add">分类添加</a></li>
                            <li><a href="/articlecate/list">分类管理</a></li>
                        </ul>
                    </li>
                    <li class="sub-menu">
                        <a href="javascript:void(0);"><i class="fa fa fa-file-text-o"></i><span>博文管理</span><i class="arrow fa fa-angle-right pull-right"></i></a>
                        <ul>
                            <li><a href="/article/add">博文添加</a></li>
                            <li><a href="/article/list">博文列表</a></li>
                        </ul>
                    </li>
                    <li class="sub-menu">
                        <a href="javascript:void(0);"><i class="fa fa fa-file-text-o"></i><span>博文回复</span><i class="arrow fa fa-angle-right pull-right"></i></a>
                        <ul>
                            <li><a href="/blogreply/list">回复列表</a></li>
                            <li><a href="/blogreply/add">添加回复</a></li>
                        </ul>
                    </li>
                    <li class="sub-menu">
                        <a href="javascript:void(0);"><i class="fa fa fa-file-text-o"></i><span>评价管理</span><i class="arrow fa fa-angle-right pull-right"></i></a>
                        <ul>                           
                            <li><a href="/comment/list">评价列表</a></li>
                            <li><a href="/comment/add">添加评价</a></li>
                        </ul>
                    </li>

                    <li class="sub-menu">
                        <a href="javascript:void(0);"><i class="fa fa fa-file-text-o"></i><span>网站配置</span><i class="arrow fa fa-angle-right pull-right"></i></a>
                        <ul>                           
                            <li><a href="/config/add">配置管理</a></li>
                            <li><a href="/config/list">配置信息</a></li>
                        </ul>
                    </li>

                    <li class="sub-menu">
                        <a href="javascript:void(0);"><i class="fa fa fa-file-text-o"></i><span>图片轮播</span><i class="arrow fa fa-angle-right pull-right"></i></a>
                        <ul>                           
                            <li><a href="/lunbo/add">添加轮播</a></li>
                            <li><a href="/lunbo/list">轮播信息</a></li>
                        </ul>
                    </li>

                    <li class="sub-menu">
                        <a href="javascript:void(0);"><i class="fa fa fa-file-text-o"></i><span>友情链接</span><i class="arrow fa fa-angle-right pull-right"></i></a>
                        <ul>                           
                            <li><a href="/link/add">链接添加</a></li>
                            <li><a href="/link/list">链接编辑</a></li>
                        </ul>
                    </li>

                    <li class="sub-menu">
                        <a href="javascript:void(0);"><i class="fa fa fa-file-text-o"></i><span>商品广告</span><i class="arrow fa fa-angle-right pull-right"></i></a>
                        <ul>                           
                            <li><a href="/goodsad/add">添加广告</a></li>
                            <li><a href="/goodsad/list">广告编辑</a></li>
                        </ul>
                    </li>
    
                    <li class="sub-menu">
                        <a href="javascript:void(0);"><i class="fa fa fa-file-text-o"></i><span>底部相关</span><i class="arrow fa fa-angle-right pull-right"></i></a>
                        <ul>                           
                            <li><a href="/someabout/add">更新展示</a></li>
                            <li><a href="/someabout/list">具体展示</a></li>
               
                        </ul>
                    </li>
                </ul>
            </div>

        </aside>
        <!--sidebar left end-->
        <!--main content start-->
        <section class="main-content-wrapper">
            @if(session('info'))
                <div class="alert alert-success alert-dismissable text-center">
                <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
                <strong><span class="glyphicon glyphicon-ok"></span></strong>&nbsp;&nbsp;&nbsp;<span>{{session('info')}}</span></div>
            @endif
            @if(session('error'))
                <div class="alert alert-danger alert-dismissable text-center">
                <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
                <strong><span class="glyphicon glyphicon-ok"></span></strong>&nbsp;&nbsp;&nbsp;<span>{{session('error')}}</span></div>
            @endif
            @section('content')

            @show
        </section>
        <!--main content end-->
        <!--sidebar right start-->
        <aside class="sidebarRight">
            <div id="rightside-navigation ">
                <div class="sidebar-heading"><i class="fa fa-user"></i> Contacts</div>
                <div class="sidebar-title">online</div>
                <div class="list-contacts">
                    <a href="javascript:void(0)" class="list-item">
                        <div class="list-item-image">
                            <img src="/admins/img/avatar.gif" class="img-circle">
                        </div>
                        <div class="list-item-content">
                            <h4>James Bagian</h4>
                            <p>Los Angeles, CA</p>
                        </div>
                        <div class="item-status item-status-online"></div>
                    </a>
                    <a href="javascript:void(0)" class="list-item">
                        <div class="list-item-image">
                            <img src="/admins/img/avatar1.gif" class="img-circle">
                        </div>
                        <div class="list-item-content">
                            <h4>Jeffrey Ashby</h4>
                            <p>New York, NY</p>
                        </div>
                        <div class="item-status item-status-online"></div>
                    </a>
                    <a href="javascript:void(0)" class="list-item">
                        <div class="list-item-image">
                            <img src="/admins/img/avatar2.gif" class="img-circle">
                        </div>
                        <div class="list-item-content">
                            <h4>John Douey</h4>
                            <p>Dallas, TX</p>
                        </div>
                        <div class="item-status item-status-online"></div>
                    </a>
                    <a href="javascript:void(0)" class="list-item">
                        <div class="list-item-image">
                            <img src="/admins/img/avatar3.gif" class="img-circle">
                        </div>
                        <div class="list-item-content">
                            <h4>Ellen Baker</h4>
                            <p>London</p>
                        </div>
                        <div class="item-status item-status-away"></div>
                    </a>
                </div>

                <div class="sidebar-title">offline</div>
                <div class="list-contacts">
                    <a href="javascript:void(0)" class="list-item">
                        <div class="list-item-image">
                            <img src="/admins/img/avatar4.gif" class="img-circle">
                        </div>
                        <div class="list-item-content">
                            <h4>Ivan Bella</h4>
                            <p>Tokyo, Japan</p>
                        </div>
                        <div class="item-status"></div>
                    </a>
                    <a href="javascript:void(0)" class="list-item">
                        <div class="list-item-image">
                            <img src="/admins/img/avatar5.gif" class="img-circle">
                        </div>
                        <div class="list-item-content">
                            <h4>Gerald Carr</h4>
                            <p>Seattle, WA</p>
                        </div>
                        <div class="item-status"></div>
                    </a>
                    <a href="javascript:void(0)" class="list-item">
                        <div class="list-item-image">
                            <img src="/admins/img/avatar6.gif" class="img-circle">
                        </div>
                        <div class="list-item-content">
                            <h4>Viktor Gorbatko</h4>
                            <p>Palo Alto, CA</p>
                        </div>
                        <div class="item-status"></div>
                    </a>
                </div>
            </div>
        </aside>
        <!--sidebar right end-->
    </section>
    <!--Global JS-->
    <script src="/admins/js/jquery-1.10.2.min.js"></script>
    <script src="/admins/plugins/bootstrap/js/bootstrap.min.js"></script>
    <script src="/admins/plugins/waypoints/waypoints.min.js"></script>
    <script src="/admins/js/application.js"></script>
    <!--Page Level JS-->
    <script src="/admins/plugins/countTo/jquery.countTo.js"></script>
    <script src="/admins/plugins/weather/js/skycons.js"></script>
    <!-- FlotCharts  -->
    <script src="/admins/plugins/flot/js/jquery.flot.min.js"></script>
    <script src="/admins/plugins/flot/js/jquery.flot.resize.min.js"></script>
    <script src="/admins/plugins/flot/js/jquery.flot.canvas.min.js"></script>
    <script src="/admins/plugins/flot/js/jquery.flot.image.min.js"></script>
    <script src="/admins/plugins/flot/js/jquery.flot.categories.min.js"></script>
    <script src="/admins/plugins/flot/js/jquery.flot.crosshair.min.js"></script>
    <script src="/admins/plugins/flot/js/jquery.flot.errorbars.min.js"></script>
    <script src="/admins/plugins/flot/js/jquery.flot.fillbetween.min.js"></script>
    <script src="/admins/plugins/flot/js/jquery.flot.navigate.min.js"></script>
    <script src="/admins/plugins/flot/js/jquery.flot.pie.min.js"></script>
    <script src="/admins/plugins/flot/js/jquery.flot.selection.min.js"></script>
    <script src="/admins/plugins/flot/js/jquery.flot.stack.min.js"></script>
    <script src="/admins/plugins/flot/js/jquery.flot.symbol.min.js"></script>
    <script src="/admins/plugins/flot/js/jquery.flot.threshold.min.js"></script>
    <script src="/admins/plugins/flot/js/jquery.colorhelpers.min.js"></script>
    <script src="/admins/plugins/flot/js/jquery.flot.time.min.js"></script>
    <script src="/admins/plugins/flot/js/jquery.flot.example.js"></script>
    <!-- Morris  -->
    <script src="/admins/plugins/morris/js/morris.min.js"></script>
    <script src="/admins/plugins/morris/js/raphael.2.1.0.min.js"></script>
    <!-- Vector Map  -->
    <script src="/admins/plugins/jvectormap/js/jquery-jvectormap-1.2.2.min.js"></script>
    <script src="/admins/plugins/jvectormap/js/jquery-jvectormap-world-mill-en.js"></script>
    <!-- ToDo List  -->
    <script src="/admins/plugins/todo/js/todos.js"></script>
    <!--Load these page level functions-->
    <script>
    $(document).ready(function() {
        app.timer();
        app.map();
        app.weather();
        app.morrisPie();
    });
    </script>   

</body>

</html>
